package com.qfjy.service.impl;

import com.qfjy.entity.po.WeiUser;
import com.qfjy.mapper.WeiUserMapper;
import com.qfjy.service.WeiUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName WeiUserServiceImpl
 * @Description TODO
 * @Author guoweixin
 * @Date 2022/12/5
 * @Version 1.0
 */
@Service
@Slf4j
public class WeiUserServiceImpl implements WeiUserService {


    @Autowired
    private WeiUserMapper weiUserMapper;
    /**
     * 添加wei_user
     *
     * @param weiUser
     * @return
     */
    @Override
    public int insertSelective(WeiUser weiUser) {
        return  weiUserMapper.insertSelective(weiUser);
    }

    /**
     * 根据openid查找wei_user
     *
     * @param openid
     * @return
     */
    @Override
    public WeiUser selectWeiUserByOpenid(String openid) {
        return weiUserMapper.selectWeiUserByOpenid(openid);
    }
}
